package com.rk.kbk.dao;

import com.rk.kbk.model.SendRates;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by bilibili on 2017/3/17.
 */
public interface SendRatesDao extends JpaRepository<SendRates, Long>,JpaSpecificationExecutor {
    /**
     *
     * @param areaCode 区域代码 按照距离倒叙排列
     * @return
     */
    List<SendRates>  findByAreaCodeOrderByAreaLengthAsc(String areaCode);
}
